<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('项目诊断')" />
</head>
<body class="white-bg">
  <div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-projectDiagnosis-edit" th:object="${projectInfo}">
      <input id="projectId" name="projectId" th:field="*{projectId}"  type="hidden">
			<div class="form-group">
				<label class="col-sm-3 control-label"><span style="color: red; ">*</span>症状1：</label>
				<div class="col-sm-8">
          <textarea name="symptom1" maxlength="255" class="form-control" rows="5" required>[[*{symptom1}]]</textarea>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">症状2：</label>
				<div class="col-sm-8">
          <textarea name="symptom2" maxlength="255" class="form-control" rows="5">[[*{symptom2}]]</textarea>
				</div>
			</div>
			<div class="form-group">	
				<label class="col-sm-3 control-label">症状3：</label>
				<div class="col-sm-8">
          <textarea name="symptom3" maxlength="255" class="form-control" rows="5">[[*{symptom3}]]</textarea>
				</div>
			</div>
		</form>
    </div>
  <div class="row">
    <div class="col-sm-offset-5 col-sm-10">
      <button type="button" class="btn btn-sm btn-primary" onclick="submitHandler()"><i class="fa fa-check"></i>保 存</button>&nbsp;
      <button type="button" class="btn btn-sm btn-danger" onclick="closeItem()"><i class="fa fa-reply-all"></i>关 闭 </button>
    </div>
  </div>
    <div th:include="include::footer"></div>
    <script type="text/javascript">
		var prefix = ctx + "project/projectDiagnosis";
		$("#form-projectDiagnosis-edit").validate({
			focusCleanup: true
		});
		
		function submitHandler() {
      if ($.validate.form()) {
        $.operate.saveTab(prefix + "/edit", $('#form-projectDiagnosis-edit').serialize());
      }
    }
	</script>
</body>
</html>
